
#include "EZCP_Sim_Common.h"

unsigned int MSG_DATA_LENGTHS [EZCP_NUM_OF_MSGS] =
{1, 1, 1, 4, 2, 4, 2, 2, 1, 121, 9, 3, 1, 1, 1, 1, 1,9};

void *pf_Sender();
void *pf_Receiver();

int main(int argc, char *argv[])
{
	s32 si_RetVal=EXIT_SUCCESS;

	pthread_t	Sender_thread_id;
	pthread_t	Receiver_thread_id;

	//Start Simulator sending thread (for sensors)
	si_RetVal = pthread_create(&Sender_thread_id, NULL, &pf_Sender , NULL);

	//start Simulator receiving thread (for actuators and support system)
	si_RetVal = pthread_create(&Receiver_thread_id, NULL, &pf_Receiver, NULL);

	//print("%s: Waiting to join Sender and Receiver threads...\n",__func__);

	pthread_join (Sender_thread_id, NULL);
	pthread_join (Receiver_thread_id, NULL);

	print ("%s: Exit from EZCP Simulator Program \n",__func__);
	return si_RetVal;
}


